import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueLazyload from 'vue-lazyload'
import ElementUI from 'element-ui'
import './styles/reset.css'
import './styles/iconfont.css'
import 'element-ui/lib/theme-chalk/index.css'
import './mock'
Vue.config.productionTip = false
Vue.use(ElementUI)

// 引入字体图标库
import '../src/styles/img/iconfont/iconfont'
// 整体页面图片懒加载
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: 'images/error.jpg',
  loading: 'images/loading.gif',
  attempt: 1,
})

new Vue({
  render: (h) => h(App),
  router,
  store,
}).$mount('#app')
